package dale.web.core.json;

import java.text.*;

import org.codehaus.jackson.map.ObjectMapper;
import org.springframework.stereotype.Component;

@Component
public class CustomObjectMapper extends ObjectMapper {

	public CustomObjectMapper() {
	}

	public void afterPropertiesSet() throws Exception {
		DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
		setDateFormat(dateFormat);
	}
}
